package com.sfac.javaSpringBoot.modules.spider.dao;

import com.sfac.javaSpringBoot.modules.spider.entity.Coronavirus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description CoronavirusDao
 * @Author HymanHu
 * @Date 2021/8/30 13:28
 */
@Mapper
@Repository
public interface CoronavirusDao {

    @Select("select * from spider_coronavirus order by date desc limit 7")
    List<Coronavirus> getCoronaviruses();
}
